<div class="logo">
    <img src="/images/logo.png" alt="" /> 
</div>

<div class="content">
    <form class="form-vertical login-form" method="post" autocomplete="off">
        <input type="hidden" value="<?php echo $referer ?>" name="referer" />
        <h3 class="form-title">Нэвтрэх хэсэг</h3>
        <?php if ($form->hasErrors()): ?>
            <?php if ($form->hasGlobalErrors()): ?>
                <div class="alert alert-error">
                    <?php foreach ($form->getGlobalErrors() AS $error) : ?>
                        <span><?php echo $error ?></span>
                    <?php endforeach; ?>
                </div>
            <?php else: ?>
                <div class="alert alert-error">
                    <span>Хэрэглэгчийн нэр, нууц үг оруулна уу</span>
                </div>
            <?php endif; ?>
        <?php else: ?>
            <div class="alert alert-info">
                <span>Хэрэглэгчийн нэр, нууц үг оруулна уу</span>
            </div>
        <?php endif; ?>
        <div class="control-group <?php echo $form['username']->hasError() ? 'error' : '' ?>">
            <!--ie8, ie9 does not support html5 placeholder, so we just show field title for that-->
            <label class="control-label visible-ie8 visible-ie9">Хэрэглэгч</label>
            <div class="controls">
                <div class="input-icon left">
                    <i class="icon-user"></i>
                    <?php echo $form['username'] ?>
                </div>
            </div>
        </div>
        <div class="control-group <?php echo $form['password']->hasError() ? 'error' : '' ?>">
            <label class="control-label visible-ie8 visible-ie9">Нууц үг</label>
            <div class="controls">
                <div class="input-icon left">
                    <i class="icon-lock"></i>
                    <?php echo $form['password'] ?>
                </div>
            </div>
        </div>
        <div class="form-actions">
            <input type="submit" class="btn green btn-primary pull-right" value="Нэвтрэх" />
        </div>
    </form>
</div>

<div class="copyright">
    2014 &copy; Powered by Atu
</div>